package com.kexuexiong.demo.bear.job;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TestJobHandle {

    @XxlJob("demoJobHandler")
    public void demoJobHandler() throws Exception {
        log.info("demoJobHandler");
        XxlJobHelper.log("XXL-JOB, Hello World.");
    }
}
